<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class A
{
    //
    public $b;
    public function __construct(){
        $this->b = new B();
    }

    public function getB(){
        return $this->b;
    }
}



